<?php 
class TestModel extends Model { 
	public $table = 'test';
	public $primary = 'id';
	public function getUser() {
		$num = rand(1,5);
		$res = $this->select("SELECT * FROM {$this->table} where 1 limit 0,1"); //查询表, 这里查询你有的表就行了 
		return $res;
	}

}